package com.proba.annotations.hibernate;

import java.sql.Timestamp;
import java.util.List;

import org.hibernate.criterion.Restrictions;

import com.proba.annotations.TrebovanjeBetonDAO;
import com.proba.annotations.pojo.TrebovanjeBeton;

/**
 * <p>Hibernate DAO layer for TrebovanjeBetons</p>
 * <p>Generated at Thu Feb 25 19:39:58 CET 2010</p>
 *
 * @author Salto-db Generator v1.0.16 / EJB3 + Hibernate DAO
 * @see http://www.hibernate.org/328.html
 */
public class TrebovanjeBetonHibernateDAO extends
		AbstractHibernateDAO<TrebovanjeBeton, Long> implements
		TrebovanjeBetonDAO {

	/**
	 * Find TrebovanjeBeton by datum
	 */
	public List<TrebovanjeBeton> findByDatum(Timestamp datum) {
		return findByCriteria(Restrictions.eq("datum", datum));
	}
	
	/**
	 * Find TrebovanjeBeton by proizvodenPogon
	 */
	public List<TrebovanjeBeton> findByProizvodenPogon(Long proizvodenPogon) {
		return findByCriteria(Restrictions.eq("proizvodenPogon", proizvodenPogon));
	}
	
	/**
	 * Find TrebovanjeBeton by partner
	 */
	public List<TrebovanjeBeton> findByPartner(Long partner) {
		return findByCriteria(Restrictions.eq("partner", partner));
	}
	
	/**
	 * Find TrebovanjeBeton by tipGotovProizvod
	 */
	public List<TrebovanjeBeton> findByTipGotovProizvod(Long tipGotovProizvod) {
		return findByCriteria(Restrictions.eq("tipGotovProizvod", tipGotovProizvod));
	}
	
	/**
	 * Find TrebovanjeBeton by sevkupnoKolicini
	 */
	public List<TrebovanjeBeton> findBySevkupnoKolicini(Long sevkupnoKolicini) {
		return findByCriteria(Restrictions.eq("sevkupnoKolicini", sevkupnoKolicini));
	}
	
	/**
	 * Find TrebovanjeBeton by cement
	 */
	public List<TrebovanjeBeton> findByCement(Long cement) {
		return findByCriteria(Restrictions.eq("cement", cement));
	}
	

}
